package routers

import (
	"giv-vue-blog/api"
	"giv-vue-blog/middleware"
)

func (router RouterGroup) ImagesRouter() {
	image := api.ApiGroupApp.ImagesApi
	router.POST("image", middleware.JwtAuth(), image.ImageUploadView)
	router.GET("image", middleware.JwtAuth(), image.ImageListView)
	router.GET("image_names", middleware.JwtAuth(), image.ImageNameListView)
	router.DELETE("image", middleware.JwtAuth(), image.ImageDelView)
	router.PUT("image", middleware.JwtAuth(), image.ImageUpdateView)
}
